<%@ Reference Control="~/Controls/PagingControl.ascx" %>
<%@ Page language="vb" EnableViewStateMac="true" Inherits="_2bMatesSite.group_comments" CodeFile="group_comments.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<%@ Register tagprefix="Pager" Tagname="DataGridPager" Src="Controls/PagingControl.ascx" %>
<form id="Form1" method="post" runat="server">
	<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" height="100%">
		<tr>
			<td colspan="3">
				<table cellspacing="0" cellpadding="0" width="100%" border="0" class="page_title">
					<tr>
						<td><asp:literal id="litWho" runat="server">Your Group Comments</asp:literal></td>
						<td align="right"><asp:hyperlink id="hlBackToGroup" runat="server" cssclass="white_link"></asp:hyperlink></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td valign="top" width="100%" height="100%" class="main_table_border"> <!-- width="556" -->
				<div class="content">
					<table border="0" align="center" cellpadding="0" cellspacing="0" width="100%" class="main_text">
						<tr id="trPagerUp" runat="server">
							<td valign="top">
								<pager:datagridpager id="dgPagerUp" runat="server"></pager:datagridpager>
							</td>
						</tr>
						<tr>
							<td vAlign="top" align="center">
								<asp:label id="lblNoComments" runat="server" Visible="False">There are no comments posted.</asp:label>
								<ASP:DATAGRID id="dgMessages" runat="server" AutoGenerateColumns="False" GridLines="None" Width="100%" PagerStyle-Mode="NumericPages" PagerStyle-HorizontalAlign="Right">
									<ItemStyle CssClass="data_grid" VerticalAlign="Top"></ItemStyle>
									<Columns>
										<asp:TemplateColumn>
											<HeaderStyle Width="20%"></HeaderStyle>
											<ItemStyle CssClass="data_grid" VerticalAlign="Top"></ItemStyle>
											<ItemTemplate>
												<asp:hyperlink id=hlUser runat="server" font-bold="True" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "MemberURL") %>' cssclass="main_text_bold">
													<%# DataBinder.Eval(Container.DataItem, "SenderName") %>
												</asp:hyperlink>
												<br>
												<asp:hyperlink id=hlSenderImage runat="server" CssClass="small_image" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "MemberURL") %>' ImageUrl='<%# DataBinder.Eval(Container.DataItem, "SenderImageURL") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "SenderNameFull") %>'>Image</asp:hyperlink>
												<br>
												<asp:image id="imgOnline" runat="server" imageurl='<%# DataBinder.Eval(Container.DataItem, "OnlineImg") %>' >
												</asp:image>
											</ItemTemplate>
											<FooterStyle HorizontalAlign="Left" VerticalAlign="Top"></FooterStyle>
										</asp:TemplateColumn>
										<asp:TemplateColumn>
											<HeaderStyle Width="80%"></HeaderStyle>
											<ItemStyle CssClass="data_grid" VerticalAlign="Top"></ItemStyle>
											<ItemTemplate><br>
													<asp:hyperlink id=hlSenderName runat="server" CssClass="main_text_bold" Font-Bold="True" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "MemberURL") %>' Text='<%# DataBinder.Eval(Container.DataItem, "SenderNameFull") %>'></asp:hyperlink>&nbsp;&nbsp; 
													<asp:label id=lblDate runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Date") %>'></asp:label><br><br>
													<PRE WRAP STYLE="word-wrap:break-word;"><asp:literal id=litComment runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Comment") %>'></asp:literal></PRE><br />
													<asp:linkbutton id=lbReject runat="server" CssClass="main_text_bold" Font-Bold="True" CausesValidation="False" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "CommentID") %>' CommandName="Reject" Visible='<%# DataBinder.Eval(Container.DataItem, "RemoveVisibility") %>'><%# DataBinder.Eval(Container.DataItem, "RejectText") %></asp:linkbutton>&nbsp; 
													<asp:linkbutton id=lbApprove runat="server" Font-Bold="True" CssClass="main_text_bold" CausesValidation="False" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "CommentID") %>' CommandName="Approve" Visible='<%# DataBinder.Eval(Container.DataItem, "ButtonsVisibility") %>'>Approve</asp:linkbutton><br /><br />
											</ItemTemplate>
											<FooterStyle HorizontalAlign="Left" VerticalAlign="Top"></FooterStyle>
										</asp:TemplateColumn>
									</Columns>
									<PagerStyle HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
								</ASP:DATAGRID>
							</td>
						</tr>
						<tr id="trPager" runat="server">
							<td valign="top">
								<pager:datagridpager id="dgPager" runat="server"></pager:datagridpager>
							</td>
						</tr>
					</table>
				</div>
			</td>
		</tr>
	</table>
</form>
